package com.fang.dubbo.mock.rpc.consumer;


import com.fang.dubbo.mock.common.FangResponse;
import com.fang.dubbo.mock.rpc.netty.NettyClient;
import com.fang.dubbo.mock.rpc.publicinterface.DemoRpcService;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2022/1/2 1:50 下午
 **/
public class ClientBootstrap {
    public static void main(String[] args) {
        DemoRpcService demoRpcService = new NettyClient().getProxy(DemoRpcService.class);
        FangResponse<String> res = demoRpcService.sayHello("your father");
        System.out.println(res.toString());
    }
}
